package main

import (
	"fmt"
	"time"
)


func main() {
	
	var tick1 <-chan time.Time
	tick1 = time.After(100 * time.Millisecond)
	
	var tick2 <-chan time.Time
	tick2 = time.Tick(1000 * time.Millisecond)
	for {
		//fmt.Println("run1")
		select {
			case <-tick1:
				fmt.Println("run2")
				tick1 = time.After(100 * time.Millisecond)
			case <-tick2:
				fmt.Println("run3")
    		//default:
    			
		}
	}

	
}
